package io.seata.sample.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.seata.sample.entity.Order;

import java.math.BigDecimal;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
/**
 * @Author: linKe
 * @Date: 2022/1/25 10:33
 * @FileName: OrderMapper
 * @version: 1.0
 * @Description: 描述
 */

public interface OrderMapper extends BaseMapper<Order> {

    /**
     * 创建订单
     *
     * @param order
     * @return
     */
    void create(Order order);

    /**
     * 修改订单金额
     *
     * @param userId
     * @param money
     */
    void update(@Param("userId") Long userId, @Param("money") BigDecimal money, @Param("status") Integer status);
}

